home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / medhelth / slim303c.zip / 4.ZIP / CALTAB.DOC next >
Text File  |  1995-02-18  |  12KB  |  247 lines

  1.  
  2.                                                           January 18, 1995
  3.                                                          
  4.  
  5.                         *************************
  6.                         *                       *
  7.                         *     CALTAB Rev 1.41    *
  8. *************************                       *************************
  9.                         *        (c) 1995       *
  10.                         *                       *
  11.                         *************************
  12.  
  13.                                   by
  14.  
  15.                           George D. Summers
  16.                           2117 Coon Club Road
  17.                           Westminster, MD 21157
  18.  
  19.                           Phone 410-848-5797
  20.                             (Usually  available between 5:30 and 9:30 pm on
  21.                             weekdays,   between   7:00   and  10:00  pm  on
  22.                             Saturday,  and  between  2:00  and  6:00  pm on
  23.                             Sunday).
  24.  
  25.                           CIS 76276,564
  26.                           Internet:76276.564@compuserve.com
  27.  
  28. CALTAB is the food (and exercise) table editor for SLIMMER Rev 3.0  and  is
  29. only  available  to  REGISTERED users of SLIMMER.  Please do not distribute
  30. file CALTAB.EXE to others.
  31.  
  32. CALTAB performs the following functions:
  33.  
  34.       1. The food table files can be edited.
  35.       2. New items can be added to the food tables.
  36.       3. Items can be deleted from the food tables.
  37.       4. The food table files can be sorted.
  38.       5. The food table files can be converted to print files.
  39.       6. The food table menu can be edited.
  40. Most of the data listed in the food tables is obtained from the following
  41. reference:
  42.  
  43.       Bowes and Church's
  44.       FOOD VALUES OF PORTIONS COMMONLY USED
  45.       15th edition
  46.       revised by Jean A. T. Pennington, Ph.D., R.D.
  47.       Harper & Row, Publishers, New York
  48.  
  49. If you wish to add to the food  tables,  the  above  reference  is  readily
  50. available  for  purchase  in  8-1/2"  x 11" paperback and provides data for
  51. many more items than those included in  the  SLIMMER  Rev  3.0  food  table
  52. database. Very few name brands were included in the SLIMMER database. Since
  53. individual tastes vary considerably, it was assumed that individuals  could
  54. easily add the name brand items of their choice.  Additional references are
  55. found in SLIMMER.DOC.
  56.  
  57. Note  that sometimes there are blank entries in the food tables.
  58. When this occurs, the correct assumption is that the value is unknown ( not
  59. that the value is 0).
  60.  
  61.                            PROGRAM USAGE
  62.  
  63. CALTAB,  the Food Table Editor for registered SLIMMER users, is called from
  64. the main program menu within SLIMMER Rev 3.0 and does not  operate  on  its
  65. own.  A default set of food tables with the file  extension  .DAT  such  as
  66. BEV.DAT  etc is supplied with SLIMMER.  These files have been designated as
  67. read-only files (you can't edit them).  When  you  select  "T  calTab  food
  68. table  editor" from the main SLIMMER menu for the first time, a set of food
  69. table  files  will  be  initialized  for you by  copying  the  *.DAT  files
  70. into  your  unique  food  table files.  These unique files will end with an
  71. extension that is either the first three letters of your name, or will be a
  72. _ plus the first 2 letters of your name.  In my case, n$ = GEORGE  and  the
  73. food  table  extensions ext$ would all be .GEO such as BEV.GEO etc. In  the
  74. event  that the first 3 letters of your name conflicts with extensions used
  75. by DOS or by the program (such as EXE, BAT, CAL, or  SLM)  then  they  will
  76. become  ._EX,  ._BA, ._CA, or ._SL respectively.  The purpose of the unique
  77. extensions is to allow multiple users to use  CALTAB  and  SLIMMER  without
  78. modifying  each  other's  food table files. SLIMMER and CALTAB will then be
  79. able to co-exist in the same subdirectory.
  80.  
  81. NOTE  that  if two people with the same name (such as JOHN etc) use SLIMMER
  82. (and therefore CALTAB) their data files will conflict. In  this  case  they
  83. may  want  to use nicknames or change their login names to 1JOHN, 2JOHN etc
  84. if they want to have a unique set of data.
  85.  
  86. The main CALTAB menu lets you select the food  table  of  your  choice  for
  87. editing.  All  other  program  features (sort and print file) are available
  88. when the food table file is displayed on the screen  and  the  "Enter  Line
  89. Item  # to EDIT" box is visible. Pressing function key F1 will show you the
  90. list of functions available to you:
  91.  
  92.                        HELP FOR FOOD EDIT ROUTINE
  93.  
  94.                       F2              Save file
  95.                       F3              Delete item
  96.                       F4              Sort List
  97.                       F6              Send List to Print File
  98.                       home            Page 1
  99.                       end             Last page
  100.                       Pg Dn           Next page
  101.                       Pg Up           Previous page
  102.                       Esc             Quit editing
  103.                       xxx             Edit line number
  104.  
  105.              note: If line number selected is on the screen, then
  106.              the edit mode is invoked.  If the number is  not  on
  107.              the screen, then the page containing the line number
  108.              will be displayed.
  109.  
  110. Whenever  a  data  file  is edited, the original .ext$ file is renamed to a
  111. .DAA file and is the backup file in case there is  an  accidental  loss  of
  112. power or unexpected error during your editing session.  If this occurs, you
  113. can restore your original file with the command:
  114.  
  115.                      copy fn.DAA fn.ext$
  116.  
  117. where fn is the name of the file you are editing, and ext$ is  your  unique
  118. file  extension  (see  above).  To  see  a list of the .DAA files, type the
  119. following command:
  120.  
  121.                      dir *.DAA
  122.  
  123.                             SAVING FILES
  124.  
  125. As  is the case in any editing session, it is wise to save your file often.
  126. This can be done by pressing F2  whenever  "Enter  Line  Item  #  to  EDIT"
  127. appears in the box at the bottom of your screen. If you have saved  a  file
  128. during  the  editing  session and then experience a loss of power or error,
  129. the .ext$ file will be the most recent file and you will only have lost the
  130. changes you made after pressing F2.
  131.  
  132.                             SORT ROUTINE
  133.  
  134. The  sort  routine  will  sort items according to the order of the standard
  135. ASCII table. The order will be comma (,), period (.), then  the  numbers  0
  136. through  9,  then the upper case letters (A through Z), followed finally by
  137. the lower case letters (a through z) an the tittle(~). If  you  have  items
  138. that  that you want to have ordered differently than the standard sort, you
  139. can rename them so that the sort routine would place them  in  a  different
  140. location  in  the  list. For example, if an item must be first in the list,
  141. you could start the description with a period (.) to ensure that  it  would
  142. be listed first. If the item needs to be last, the tittle (~) could be used
  143. to ensure that the item is last in the list. Feel free to experiment a bit.
  144. The ASCII table is readily available in most programming manuals.
  145.  
  146.                             EDITING THE FOOD TABLE MENU
  147.  
  148. Selecting  the  last  line in the main menu places you in the edit mode for
  149. the menus and file names. When you then select a menu line, you'll be  able
  150. to edit first the description, then the file name for the data. To delete a
  151. line  in  the  menu,  you  can  either hold down the <DEL> key for both the
  152. description and the file name until the characters disappear, or  else  use
  153. the  <CTRL><END> command. To add lines, go to any blank line and enter both
  154. a   description and a file name. BLANKING OUT LINES WITH THE SPACE BAR WILL
  155. CAUSE PROBLEMS..... Use <CTRL><END> instead.
  156.  
  157. CAUTION - When you change a file name in the menu editor,  unless  the  new
  158. file  name  corresponds  to  an  existing file, you will have the condition
  159. described below under MISSING .ext$ FILES
  160.  
  161.  
  162.                             MISSING .ext$ FILES
  163.  
  164. When  you  try  to  edit  a XXX.ext$ file that is missing, (XXX = BEV,  etc
  165. and  ext$  is  your  unique extension) CALTAB will create an empty file and
  166. name it XXX.ext$ and you will be able to enter data  into  it.  This  is  a
  167. useful  feature  if  you  want  to  start from scratch with any of the food
  168. tables.  You could rename the .ext$ file in question to anything other than
  169. .ext$, and CALTAB would create the empty .ext$ file.  This  feature  always
  170. happens  when  you first select the "Special items for n$" category, (n$ is
  171. your name), and allows a separate file to be generated for each  user.   If
  172. the  .ext$  file is really missing and you don't want an empty .ext file to
  173. be formed, you can either copy the missing  file  into  the  directory  and
  174. overwrite   the   empty  file  (in  DOS),  or  change  the  file  name  (in
  175. CALTAB's menu editor) to one that exists.
  176.  
  177.                             USING CALTAB WITH SLIMMER
  178.  
  179. CALTAB Rev 1.4 (Jan 1, 1991) and onward is written to co-exist with SLIMMER
  180. and  should  be  located in the SLIM30 subdirectory. Note that SLIMMER will
  181. NOT recognize you as a registered user until you run CALTAB for  the  first
  182. time.   This  will  create the n$.NDX file that SLIMMER looks for to see if
  183. you are registered...
  184.  
  185.  
  186.                             CALTAB REVISION HISTORY
  187.  
  188. CALTAB  Rev  1.3  was  distributed  to registered SLIMMER users between the
  189. dates of April 4, 1990 and December 23, 1990. This version  of  CALTAB  was
  190. designed  as  a  stand-alone program and worked exclusively with *.DAT food
  191. table files.
  192.  
  193. CALTAB Rev 1.4  is distributed to registered SLIMMER from December 24, 1990
  194. and  onward.  This  version  is designed to operate only as called from the
  195. main SLIMMER Rev 3.0 main menu  and  will  not  operate  independently.  It
  196. creates data files with unique extensions (ext$) for each user.
  197.  
  198. CALTAB Rev 1.41 is distributed from June 15, 1993 onward.  It adds LaserJet
  199. printers to the existing dot matrix and postscript printers.
  200.  
  201. For  those users that have experimented with CALTAB Rev 1.3,  have  created
  202. their own *.DAT files, and want to use those files -  here's what should be
  203. done: Go to your existing CALTAB  subdirectory (cd\caltab)  and  issue  the
  204. command
  205.  
  206.                             COPY *.DAT *.ext$
  207.  
  208. , where ext$ is the first 3 letters of your name, or if it  coincides  with
  209. one of the names below:
  210.  
  211. BAK   BAS   BAT   BIN   CAL   CFG   COM   DAA   DAT   EXE   ICO   INC   OVL
  212. NDD   NDX   PRT   PS    SLM   T01   ICO   ZIP
  213.  
  214. it should be a "_" plus the first two letters of your name.
  215.  
  216. (Needless  to  say,  if your name is SLIM your name has already been taken.
  217. SLIM is the person whose data files are included with SLIMMER as  examples.
  218. In this case, use a different or unique name such as 1SLIM etc.)
  219.  
  220. The  COPY  *.DAT  *.ext$  (you  supply  the  ext$ value from above) command
  221. copies ALL the *.DAT files to files with your unique extension  ext$.  Your
  222. data  files are now a subset of these .ext$ files. Send a directory list of
  223. your unique files within CALTAB to your printer with the command:
  224.  
  225.                   DIR *.ext$ > LPT1  (again, you supply ext$)
  226.  
  227. Determine which of these files are your unique files by running CALTAB (rev
  228. 1.3) and selecting the last line in the main menu to view your list of file
  229. names.  Compare this list with the one you just  printed  out  (ignore  the
  230. file  extensions  for  now).   As  you leave CALTAB select YES to create an
  231. index file. Delete the files which don't coincide on  the  two  lists  with
  232. the command:
  233.  
  234.                   DEL fn.ext$ (you supply both fn and ext$)
  235.  
  236. Finally you can copy your files  into  the  SLIM30  subdirectory  with  the
  237. commands:
  238.  
  239.                  COPY n$.NDX path:\SLIM30
  240.                  COPY *.ext$ path:\SLIM30
  241.  
  242. where n$ is your name, path is the drive with your SLIM30 subdirectory, and
  243. ext$ is your extension from above.
  244.  
  245.  
  246.  
  247.